<template> 
  <van-contact-card type="add" @click="onAdd" />
  <van-contact-card type="edit" :tel="tel" :name="name" @click="onEdit" />
  
</template>

<script lang="ts" setup>
import { ref } from 'vue'
import { Toast } from 'vant'


const tel = ref('13000000000');
const name = ref('张三');
const onAdd = () =>{
  Toast('onAdd')
};
const onEdit = () =>{
  Toast('edit')
};

</script>

<style lang="scss">
 
</style>
